package com.gpc.hexapods.data;

public class BodyData {

    public static final float THICK = 0.46f;

    public float[] position;
    public float[] color;

    public BodyData() {
        setData();
    }

    private void setData() {
        float halfThick = THICK / 2;
        position = new float[]{
                // 底面
                0.65f, 0.0f, -halfThick,
                -0.65f, 0.0f, -halfThick,
                -0.4f, 0.75f, -halfThick,
                0.65f, 0.0f, -halfThick,
                -0.4f, 0.75f, -halfThick,
                0.4f, 0.75f, -halfThick,

                0.65f, 0.0f, -halfThick,
                -0.4f, -0.75f, -halfThick,
                -0.65f, 0.0f, -halfThick,
                0.65f, 0.0f, -halfThick,
                0.4f, -0.75f, -halfThick,
                -0.4f, -0.75f, -halfThick,

                //顶面
                0.65f, 0.0f, halfThick,
                -0.4f, 0.75f, halfThick,
                -0.65f, 0.0f, halfThick,
                0.65f, 0.0f, halfThick,
                0.4f, 0.75f, halfThick,
                -0.4f, 0.75f, halfThick,

                0.65f, 0.0f, halfThick,
                -0.65f, 0.0f, halfThick,
                -0.4f, -0.75f, halfThick,
                0.65f, 0.0f, halfThick,
                -0.4f, -0.75f, halfThick,
                0.4f, -0.75f, halfThick,

                //左上面
                -0.65f, 0.0f, halfThick,
                -0.4f, 0.75f, halfThick,
                -0.4f, 0.75f, -halfThick,
                -0.65f, 0.0f, halfThick,
                -0.4f, 0.75f, -halfThick,
                -0.65f, 0.0f, -halfThick,

                //左下面
                -0.65f, 0.0f, halfThick,
                -0.4f, -0.75f, -halfThick,
                -0.4f, -0.75f, halfThick,
                -0.65f, 0.0f, halfThick,
                -0.65f, 0.0f, -halfThick,
                -0.4f, -0.75f, -halfThick,

                //右上面
                0.65f, 0.0f, halfThick,
                0.4f, 0.75f, -halfThick,
                0.4f, 0.75f, halfThick,
                0.65f, 0.0f, halfThick,
                0.65f, 0.0f, -halfThick,
                0.4f, 0.75f, -halfThick,

                //右下面
                0.65f, 0.0f, halfThick,
                0.4f, -0.75f, halfThick,
                0.4f, -0.75f, -halfThick,
                0.65f, 0.0f, halfThick,
                0.4f, -0.75f, -halfThick,
                0.65f, 0.0f, -halfThick,

                //前面
                0.4f, -0.75f, halfThick,
                -0.4f, -0.75f, halfThick,
                -0.4f, -0.75f, -halfThick,
                0.4f, -0.75f, halfThick,
                -0.4f, -0.75f, -halfThick,
                0.4f, -0.75f, -halfThick,

                //后面
                0.4f, 0.75f, halfThick,
                -0.4f, 0.75f, -halfThick,
                -0.4f, 0.75f, halfThick,
                0.4f, 0.75f, halfThick,
                0.4f, 0.75f, -halfThick,
                -0.4f, 0.75f, -halfThick,
        };

        color = new float[]{
                //底
                1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f,
                1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f,
                1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f,
                1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f,

                //顶
                0.0f, 1.0f, 0.0f, 1.0f, 0.0f, 1.0f, 0.0f, 1.0f, 0.0f, 1.0f, 0.0f, 1.0f,
                0.0f, 1.0f, 0.0f, 1.0f, 0.0f, 1.0f, 0.0f, 1.0f, 0.0f, 1.0f, 0.0f, 1.0f,
                0.0f, 1.0f, 0.0f, 1.0f, 0.0f, 1.0f, 0.0f, 1.0f, 0.0f, 1.0f, 0.0f, 1.0f,
                0.0f, 1.0f, 0.0f, 1.0f, 0.0f, 1.0f, 0.0f, 1.0f, 0.0f, 1.0f, 0.0f, 1.0f,

                //左
                0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f,
                0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f,

                0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f,
                0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f,

                //右
                0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f,
                0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f,

                0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f,
                0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f,

                //前
                1.0f, 0.0f, 1.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f,
                1.0f, 0.0f, 1.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f,

                //后
                1.0f, 0.0f, 1.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f,
                1.0f, 0.0f, 1.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f,
        };
    }
}
